<?php

class C_Admin extends Controller {

	var $template_mod;

	function C_Admin ($template_mod = "general") {
		parent::Controller();
		$this->template_mod = $template_mod;
		$this->view->path = 'default';
		$this->setLayout('admin');
	}

	function default_action_view() {
		return $this->view->render("default.html");
	}

	function acl_action_edit() {
		return "<iframe src='{$this->base_dir}celini/lib/phpgacl/admin/index.php' width='1024px' height='768px'></iframe>";
	}

	public function actionListFeatures() {
		$action = array();
		$action['user'] = Celini::link('Management', 'User');
		$action['employee'] = Celini::link('Manage', 'HumanResources');
		
		$action['service'] = Celini::link('Management', 'Service');
		$action['serviceGroup'] = Celini::link('Management', 'ServiceGroup');
		$action['package'] = Celini::link('Management', 'Package');
		$action['paraclinique'] = Celini::link('Config', 'ParacliniqueConfig');
		$action['laboratory'] = Celini::link('LabManagement', 'Service');
		$action['surgery'] = Celini::link('Management', 'Surgery');
		$action['radiology'] = Celini::link('RadManagement', 'Service');

		$action['chronicDisease'] = Celini::link('Management', 'ChronicDisease');
		$action['medicalAgent'] = Celini::link('Management', 'MedicalAgent');
		$action['diagnosis'] = Celini::link('Management', 'Diagnosis');
		$action['prescriptionNote'] = Celini::link('Management', 'PrescriptionNote');

		$action['payment'] = Celini::link('Management', 'PaymentCollection');
		$action['feeCoefficient'] = Celini::link('Management', 'EmployeeFee');

		$action['department'] = Celini::link('viewDepartment', 'Department');
		$action['medicine'] = Celini::link('Management', 'Medicine');
		$action['promotion'] = Celini::link('Management', 'SaleProgram');
		$action['province'] = Celini::link('viewProvince', 'Province');
		$action['country'] = Celini::link('Management', 'Country');
		$action['career'] = Celini::link('Management', 'Career');

		$this->assign('action', $action);
		return $this->view->render('list.html');
	}



}

?>
